PATHMac OS 8 and 9 Developer Documentation > Interapplication Communication > AppleScript for Scripters >

AppleScript Language Guide

   

Syntax

Each command definition begins with a syntax description, which is a template for using the command in a statement. Syntax descriptions use the same typographic conventions used elsewhere in this guide: plain computer font indicates a language element you must type exactly as shown; italic text indicates a placeholder you must replace with an appropriate value; brackets indicate the enclosed language element or elements are optional; three ellipsis points indicate you can repeat the preceding element or elements one or more times; and vertical bars separate elements from which you must choose a single element.

To create a Move command statement from the Move syntax description, you must replace referenceToObject with a reference to the object to move and referenceToLocation with a reference to the location to which to move it. For example:

move file "Bob" of startup disk to folder "Joe" of startup disk

The term startup disk is described in Viewing a Result in the Script Editor's Result Window. References are described in Objects and References.

The use of the continuation character (¬) in a syntax description, such as that of the application command Make, indicates that the following language element must be placed on the same line as the previous element. The continuation character itself is not a required part of the syntax--it is merely a mechanism for extending a statement to include the next line.


© 1999 Apple Computer, Inc. – (Last Updated 21 May 99)